let utils = require('../../utils/utils.js')

Page({

  /**
   * Page initial data
   */
  data: {
    veriyCode:"000000",
    location:[],
    phone:"199999999999",
  },

  //登录
  login() {
    if (this.data.phone == "199999999999" && this.data.veriyCode == "000000") {
        wx.setStorageSync("userInfo", {
            phone:"199999999999"
        });
        utils.getCallBackUrl().catch(() => {
            wx.redirectTo({
                url: '/pages/index/index'
            })
        })
      } else {
        wx.showToast({
          title: '登录错误',
          icon: 'none'
        })
    }
  },
 //发送验证码
  send() {

  },

})